package app.beit.finportal.service;



import org.springframework.beans.factory.annotation.Autowired;

import app.beit.finportal.bean.WebboardBean;
import app.beit.finportal.dao.WebboardReplyDao;
import app.beit.finportal.service.convert.WebboardReplyConvert;

public class WebboardReplyService {

	@Autowired
	private WebboardReplyDao webboardReplyDao;

	public void add(final WebboardBean bean) throws Exception{
		this.webboardReplyDao.add(WebboardReplyConvert.beanToEntity(bean));
	}
	
	public void update(final WebboardBean bean) throws Exception{
		this.webboardReplyDao.update(WebboardReplyConvert.beanToEntity(bean));
	}
	
	public void delete(final WebboardBean bean) throws Exception{
		this.webboardReplyDao.delete(WebboardReplyConvert.beanToEntity(bean));
	}
}
